package 每日练习;

import java.util.Scanner;

public class text7 {
    public static void main(String[] args)
    {
        Scanner sz = new Scanner(System.in);
        System.out.println("请输入你家狗的年纪:");
        int age = sz.nextInt();
        if(age <= 0 && age >= 15)
            System.out.println("你家狗不存在");
        else if(age <= 2 && age >0)
            System.out.println((age * 10.5)+"岁");
        else
            System.out.println((2*10.5)+(age - 2) * 4+"岁");

    }
}
